<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page session="false" %>
<html>
    <head>
        <title>Spittr</title>
<%--        <link rel="stylesheet" type="text/css" href="<c:url value="/resources/style.css" />" />--%>
    </head>
    <body>
        <h1>Welcome</h1>
<%--        <a href="<c:url value="/spittle" />">Spittles</a> | <a href="<c:url value="/spitter/register" />">Register</a>--%>

        <jsp:useBean id="spittleList" scope="request" type="java.util.List"/>

        <c:forEach items="${spittleList}" var="spittle">
            <li id="spittle_<c:out value="spittle.id" />">
                <div>
                    <c:out value="${spittle.message}" />
                </div>
                <div>
                    <span><c:out value="${spittle.time}" /></span>
                </div>
            </li>
        </c:forEach>
    </body>
</html>